home *** CD-ROM | disk | FTP | other *** search
- /////////////////////////////////////////////////////////////
- //
- // Source file for Stopwatch
- //
- // This file generated by a BuilderXcessory. DO NOT EDIT THIS FILE.
- // TO ADD EXTENSIONS TO THIS CLASS, USE THE BUILDER XCESSORY
- // TO CREATE A SUBCLASS.
- //
- // This class is a user interface "component", as described
- // in "Object-Oriented Programming with C++ and OSF/Motif",
- // by Douglas Young, Prentice Hall, 1992. ISBN 0-13-630252-1
- //
- //
- /////////////////////////////////////////////////////////////
-
-
- #include "Stopwatch.h" // Generated header file for this class
- #include <Xm/RowColumn.h>
- #ifndef XmNrow
- #define XmNrow "row"
- #endif
- #ifndef XmNcolumn
- #define XmNcolumn "column"
- #endif
- // Externally defined classes referenced by this class ;
-
- #include "ControlDerived.h"
- #include "FaceDerived.h"
- #include "StopwatchDerived.h"
-
-
-
-
- // These are default resources for widgets in objects of this class
- // All resources will be prepended by *<name> at instantiation,
- // where <name> is the name of the specific instance, as well as the
- // name of the baseWidget. These are only defaults, and may be overriden
- // in a resource file by providing a more specific resource name
-
- String Stopwatch::_defaultStopwatchResources[] = {
- NULL
- };
-
- Stopwatch::Stopwatch(const char *name, Widget parent) :
- VkComponent(name)
- {
- Arg args[2];
- Cardinal count;
-
- count = 0;
-
- // Load any class-defaulted resources for this object
-
- setDefaultResources(parent, _defaultStopwatchResources );
-
-
-
- // Create an unmanaged widget as the top of the widget hierarchy
-
- _baseWidget = _stopwatch= XtVaCreateWidget ( _name,
- xmRowColumnWidgetClass,
- parent,
- NULL);
-
- // install a callback to guard against unexpected widget destruction
-
- installDestroyHandler();
-
-
- // Create widgets used in this component
- // All variables are data members of this class
-
- _face = new FaceDerived( "face",_w);
- _face->manage();
-
- _control = new ControlDerived( "control",_w);
- _control->manage();
-
- }
-
- Stopwatch::~Stopwatch()
- {
- delete _face;
- delete _control;
- }
-
- const char * Stopwatch::className() // classname
- {
- return ("Stopwatch");
- }
-
-
-
-
-
-